package com.hf.lianxi;

public class Student extends Person{
    /**
     * 属性
     */
    String perName = "student";

    /**
     * 构造方法
     */
    public Student() {
        System.out.println("Student无参构造方法");
    }

    public Student(String preName, String perName) {
        super(preName);
        this.perName = perName;
    }

    public String getPerName() {
        return perName;
    }

    public void setPerName(String perName) {
        this.perName = perName;
    }
    /**
     * 静态语句块
     */
    static {
        System.out.println("Student静态语句块");
    }

    /**
     * 非静态语句块
     */
    {
        System.out.println("Student非静态语句块");
    }

}
